package com.miracle.java2110.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * order
 * @author 
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {
    private Integer id;

    private Integer guestId;

    private Integer roomId;

    private Integer orderMoney;

    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    private Date orderTime;

    private Guest guest;

    private RoomManager room;

    private List<Serviced> serviceList;

    private List<Employeemanager> employeeList;

    private List<Drinks> drinksList;

    public Order(Integer guestId, Integer roomId, Integer orderMoney, Date orderTime) {
        this.guestId = guestId;
        this.roomId = roomId;
        this.orderMoney = orderMoney;
        this.orderTime = orderTime;
    }
}